Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <a name="html">HTML Tutorial</a><br> <a name="css">CSS Tutorial</a><br> <a name="xml">XML Tutorial</a><br> <p>Click the button to display the innerHTML of the first anchor in the document.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = document.anchors[0].innerHTML; } </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_doc_anchors2 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:24:39 GMT --> </html>
Result:
Try it Yourself - © w3schools.com